<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'solution-form',
	'enableAjaxValidation'=>true,
)); ?>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<!--style给定宽度可以影响编辑器的最终宽度-->
		<script type="text/plain" id="myEditor" style="width:100%">
		<?php echo $model->sol_content; ?>
		</script>
		<?php echo $form->error($model,'sol_content'); ?>
	</div>

	<div class="row buttons">
		<div class="parallaxIco parallaxButton" id="parallaxButton"><?php echo $model->isNewRecord ? '创建(C)' : '保存(S)'?></div>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->
<?php 
	$this->widget('ext.editor.ueditor.ueditorWidget',array(
			'id'=>'myEditor',
			'initialContent' => '<span style="color:#ccc">欢迎使用ueditor</span>',
			'initialStyle' => 'body{margin:8px;font-family:"宋体";font-size:16px;}',
			'elementPathEnabled' => true,
			'minFrameHeight' => 300,
//			'autoClearinitialContent' => true,
			'imagePath' => '/',
			'textarea' => 'content',

			'autoHeightEnabled' => true,
//			'toolbars'=>array(array('Undo','Redo','|','ForeColor','BackColor', 'Bold','Italic','Underline','JustifyLeft','JustifyCenter','JustifyRight','InsertImage','ImageNone','ImageLeft','ImageRight','ImageCenter' )),
	));
?>